<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       Cake.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html>
	<head>
		<?php echo $this -> Html -> charset(); ?>
		<base href="<?php echo $base_url; ?>" />
		<title>STUDENT NETWORK - <?php echo $title_for_layout; ?></title>
		<?php
		echo $this -> Html -> meta('icon');
		echo $this -> Html -> script(array('jquery', 'admin'));
		echo $this -> Html -> css('admin');

		echo $this -> fetch('meta');
		echo $this -> fetch('css');
		echo $this -> fetch('script');
		?>
	</head>
	<body>
		<div id="container">
			<div id="header">
				<h1>ADMINISTRATION</h1>			
			</div>
			<div id="content">
				<?php
				echo $this->Html->image('logo.png', array('alt'=>'Logo', 'title'=>'SDU Student Network', 'style' => 'width: 70px; float: left; margin-top: -10px;', 'url' => $base_url));
				echo $this->Html->image('student_network.png', array('alt'=>'Logo', 'title'=>'SDU Student Network', 'style' => 'width: 418px; float: left; margin-top: -5px; margin-left: 20px;', 'url' => $base_url));
				?>
				<p><?php if( $loggedIn ) {
					echo '<p style="text-align: right;">Hey, '.$name.';';
					echo ' <a href="logout">Logout</a></p>';
				} ?></p>
				<div style="clear: left; padding-top: 20px;"></div>
				<?php echo $this -> Session -> flash(); ?>

				<?php echo $this -> fetch('content'); ?>
			</div>
		</div>
		<div>
			<?php echo $this->element('sql_dump'); ?>
		</div>
	</body>
</html>
<?php echo '<!-- '.(microtime(true)-START).' -->';
